package cn.luow.mail.pojo;

import lombok.Data;

import java.sql.Date;
import java.util.Objects;

@Data
public class MagicLogs {

    private Long id;

    private String path;

    private String requestParams;

    private String requestBody;

    private String requestMethod;

    private String response;

    private String errorMsg;

    private Date createTime;

    private Date uploadTime;

    private String updateBy;

    private String createBy;

    private Long delFlag;

    private Long status;

    private Long type;

    private Date resolveTime;

    private String resolveVersion;

    private String fullError;

    private String description;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MagicLogs magicLogs = (MagicLogs) o;
        return Objects.equals(path, magicLogs.path) && Objects.equals(requestMethod, magicLogs.requestMethod) && Objects.equals(errorMsg, magicLogs.errorMsg);
    }

    @Override
    public int hashCode() {
        return Objects.hash(path, requestMethod, errorMsg);
    }
}
